<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragment::head(~{::title},~{})">
    <title>注册</title>
</head>
<body>
<!-- 头部导航栏 -->
<div th:replace="~{_fragment::blog-header('register')}"></div>

<!-- 内容区 -->
<div class="blog-content">
    <div class="layui-container">
        <div class="form-center animated bounceInDown">
            <div class="base-card">
                <div class="base-card-header">
                    注册
                </div>
                <div class="base-card-body">
                    <form class="layui-form layui-form-pane" action="">
                        <div class="layui-form-item">
                            <label class="layui-form-label" for="L-username">用户名</label>
                            <div class="layui-input-inline">
                                <input type="text" id="L-username" name="userName" required lay-verify="required"
                                       placeholder="用户名必须3~10个字符"
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label" for="L_password">密码</label>
                            <div class="layui-input-inline">
                                <input type="password" id="L_password" name="userPassword" required lay-verify="required|password"
                                       placeholder="必须6到12位密码"
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label" for="L_cpassword">确认密码</label>
                            <div class="layui-input-inline">
                                <input type="password" id="L_cpassword" name="cpassword" required
                                       lay-verify="required|cpassword" placeholder="请输入确认密码"
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                       <!-- <div class="layui-form-item">
                            <label for="L_vercode" class="layui-form-label">验证码</label>
                            <div class="layui-input-inline">
                                <input type="text" id="L_vercode" name="verCode" required lay-verify="required"
                                       placeholder="请输入验证码"
                                       autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-form-mid" style="padding:3px 0 !important">
                                <a href="javascript:refreshCode()">
                                    <img alt="验证码" th:src="@{/verificationCode}">
                                </a>
                            </div>
                        </div>-->
                        <div class="layui-form-item">
                            <button class="layui-btn" lay-submit lay-filter="btn-register">
                                立即注册
                            </button>
                        </div>
                        <div class="layui-form-item">
                            <a th:href="@{/login}">已有账号？前往登录</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script th:src="@{/js/register.js}" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/js/global.js}"></script>

</html>
